//
//  AppDelegate+UMeng.m
//  博金贷
//
//  Created by 何发松 on 16/5/26.
//  Copyright © 2016年   . All rights reserved.
//

#import "AppDelegate+UMeng.h"
#import "IQKeyboardManager.h"
#import <UMShare/UMShare.h>
#import <UMCommon/UMCommon.h>
#import "JJException.h"
@interface AppDelegate ()

@end
@implementation AppDelegate (UMeng)
- (BOOL)uMengApplication:(UIApplication *)application didFinishedLaunchWithOptions:(NSDictionary *)options{
    
    [JJException configExceptionCategory:JJExceptionGuardAll];
    [JJException startGuardException];
    
    //打开调试日志
    [[UMSocialManager defaultManager] openLog:NO];

    [UMConfigure initWithAppkey:@"5beb84a4b465f545e500016b" channel:nil];
    /* 设置微信的appKey和appSecret */
    [[UMSocialManager defaultManager] setPlaform:UMSocialPlatformType_WechatSession appKey:@"wxc40dc0fdb16cd16e" appSecret:@"8860ebe4fb30301e0a7bc58afff15520" redirectURL:@"http://jxafor.com/"];
    
    [[UMSocialManager defaultManager] setPlaform:UMSocialPlatformType_QQ appKey:@"101516579"  appSecret:nil redirectURL:@"http://jxafor.com/"];
    
    //键盘弹起设置
    IQKeyboardManager *manager = [IQKeyboardManager sharedManager];
    manager.enable = YES;
    manager.shouldResignOnTouchOutside = YES;
    manager.shouldToolbarUsesTextFieldTintColor = YES;
    manager.enableAutoToolbar = YES;

    return YES;
}


@end
